home *** CD-ROM | disk | FTP | other *** search
/ PC Media 4 / PC MEDIA CD04.iso / microbyt / trekdemo / dosinst.bat next >
DOS Batch File  |  1994-04-19  |  1KB  |  49 lines

  1. cls
  2. @echo off
  3. rem %1 = source
  4. rem %2 = destination
  5. md %2\trekdemo
  6. %2
  7. cd trekdemo
  8. xcopy %1 %2 
  9. if errorlevel 5 goto baddisk
  10. if errorlevel 4 goto nomemory
  11. if errorlevel 2 goto abort
  12. if errorlevel 1 goto nofiles
  13. if errorlevel 0 goto finished
  14.  
  15. :baddisk
  16. cls
  17. echo Disk write error.
  18. echo Delete the \TREKDEMO directory and run MS DOS CHECKDISK.
  19. goto exit
  20.  
  21. :nomemory
  22. cls
  23. echo Installation error occurred - Please check the following:
  24. echo 1) At least 7 megabytes of free Hard disk space.
  25. echo 2) Syntax error - 
  26. echo    Type DOSINST (CD-ROM drive letter) (Hard disk drive letter)
  27. echo    from the root directory of your CD-ROM drive.
  28. echo    Example: DOSINST D: C:
  29. echo 3) Either the CD-ROM drive letter or the Hard disk drive letter 
  30. echo    is incorrect. Make sure the CD-ROM drive and Hard disk
  31. echo    drive letters are correct.
  32. goto exit
  33.  
  34. :abort
  35. cls
  36. echo Installation terminated by user.
  37. goto exit
  38.  
  39. :nofiles
  40. cls
  41. echo Could not find source files. Make sure you are in the TREKDEMO
  42. echo di e t r   f y u   D R M d i e  g t   x t 
  43.  
  44.  f n s e  c s 
  45.  c o I s a l t o   u c s f l  e h   o   a   o   a n h W n o s a d r n t e d m . 
  46.  o o e i   : x t 
  47.  
  48.  
  49.